/*
 * @Author: atdow
 * @Date: 2021-07-14 20:23:55
 * @LastEditors: null
 * @LastEditTime: 2021-07-17 16:00:30
 * @Description: file description
 */
import request from "@/utils/request";

// 服务记录
export function getServiceLog(params = {}) {
    return request({
        url: `/system/apiMonitor/getServiceLog`,
        method: "get",
        params
        // injectParmas: true
    });
}

// 接口统计
export function getInterfaceStatistics(params = {}) {
    return request({
        url: `/system/apiMonitor/getApiStatistics`,
        method: "get",
        params
    });
}

// 用户订阅统计
export function getUserSubscriptionStatistics(params = {}) {
    return request({
        url: `/system/apiMonitor/getApiUserSubscribeStatistics`,
        method: "get",
        params
    });
}

/**
 * 获取用户组
 * @param {*} params
 * @returns
 */
export function getUserGroup(params = {}) {
    return request({
        url: `system/apiMonitor/getUserGroup`,
        method: "get",
        params
    });
}
